package io.github.uicdb.et;

import net.minecraft.core.Holder;
import net.minecraft.world.damagesource.DamageSource;
import net.minecraft.world.damagesource.DamageType;

public interface IDamageSourceReplacement {
    void et_replaceSourceType(Holder<DamageType> damageTypeHolder);

    static void castUse(DamageSource source, Holder<DamageType> damageTypeHolder) {
        ((IDamageSourceReplacement) source).et_replaceSourceType(damageTypeHolder);
    }
}
